﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace TCCT_CTC_CSDLDangVienV1
{
    public partial class frmViewImage : DevExpress.XtraEditors.XtraForm
    {
        public frmViewImage()
        {
            InitializeComponent();
        }

        private static frmViewImage _instance = null;

        public static frmViewImage Instance
        {
            get
            {
                if (_instance == null || _instance.IsDisposed)
                    _instance = new frmViewImage();

                return frmViewImage._instance;
            }
            set { frmViewImage._instance = value; }
        }


        public void SetImage(Image _image)
        {
            this.myImage.Image = _image;
        }

        private void frmViewImage_Load(object sender, EventArgs e)
        {
            frmViewImage.Instance = this;
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
            
        }
    }
}